//传入数组/单个值
export function retrunResultByArr(arr?: any, arrList?: any) {
	if ((!arr && arr != '0' && arr != 0) || arr === null) return '--';
	const resultList = [];
	const resultListIn: any[] = [];
	if (arr.length) {
		for (let index = 0; index < arr.length; index++) {
			resultList.push(
				arrList.find((item: { value: any }) => {
					return item.value == arr[index];
				})
			);
		}
	} else {
		resultList.push(
			arrList.find((item: { value: any }) => {
				return item.value == arr;
			})
		);
	}
	resultList.forEach((item) => {
		resultListIn.push(item?.label);
	});
	return resultListIn.join(',');
}
